f = oda ~ oda_lag + p_polity2 + gdppc + pop + factor(year)*factor(agency)
f1 = update(f, '.~.+alliance*selin')
f2 = update(f, '.~.+trade*selin')
f3 = update(f, '.~.+infant_mortality*selin')

mod1 = lm(f1, dat)
mod2 = lm(f2, dat)
mod3 = lm(f3, dat)

agency_trends = list(mod1, mod2, mod3)
se = lapply(agency_trends, function(i) sqrt(diag(sandwich(i))))

print(screenreg(agency_trends, omit.coef='factor', digits=3, override.se=se))
